import { RouteRecordRaw } from 'vue-router'
export const Layout = () => import('@/layout/index.vue')

const shortVideoRoutes: RouteRecordRaw[] = [
    {
        path: '/short-video',
        component: Layout,
        redirect: '/short-video/index',
        name: 'ShortVideo',
        meta: { title: '短视频营销', icon: 'video-ai-line' },
        children: [
            {
                path: 'index',
                component: () => import('@/views/shortVideo/index.vue'),
                name: 'SVIndex',
                meta: { title: '首页' },
                children: []
            },
            {
                path: 'account-manage',
                name: 'AccountManage',
                meta: { title: '账号管理' },
                children: [
                    {
                        path: 'main-account',
                        component: () => import('@/views/shortVideo/accountsManage/MainAccount.vue'),
                        name: 'MainAccount',
                        meta: { title: '主账号' },
                        children: []
                    },
                    {
                        path: 'staff-account',
                        component: () => import('@/views/shortVideo/accountsManage/StaffAccount.vue'),
                        name: 'StaffAccount',
                        meta: { title: '员工账号' },
                        children: []
                    }
                ]
            },
            {
                path: 'keywords-manage',
                name: 'KeywordsManage',
                meta: { title: '关键词管理' },
                children: [
                    {
                        path: 'add',
                        component: () => import('@/views/shortVideo/keywordsManage/Add.vue'),
                        name: 'AddKeywords',
                        meta: { title: '添加关键词' },
                        children: []
                    },
                    {
                        path: 'list',
                        component: () => import('@/views/shortVideo/keywordsManage/List.vue'),
                        name: 'KeywordsList',
                        meta: { title: '关键词列表' },
                        children: []
                    }
                ]
            },
            {
                path: 'works-manage',
                name: 'WorksManage',
                meta: { title: '作品管理' },
                children: [
                    {
                        path: 'publish',
                        component: () => import('@/views/shortVideo/worksManage/Publish.vue'),
                        name: 'PublishWorks',
                        meta: { title: '发布视频' },
                        children: []
                    },
                    {
                        path: 'list',
                        component: () => import('@/views/shortVideo/worksManage/List.vue'),
                        name: 'WorksList',
                        meta: { title: '作品列表' },
                        children: []
                    },
                    {
                        path: 'native-platform-publish',
                        component: () => import('@/views/shortVideo/worksManage/NativePlatformPublish.vue'),
                        name: 'NativePlatformPublish',
                        meta: { title: '原生平台发布' },
                        children: []
                    }
                ]
            },
            {
                path: 'matrix-manage',
                name: 'MatrixManage',
                meta: { title: '矩阵管理' },
                children: [
                    {
                        path: 'cover',
                        component: () => import('@/views/shortVideo/matrixManage/Cover.vue'),
                        name: 'Cover',
                        meta: { title: '封面' },
                        children: []
                    },
                    {
                        path: 'image',
                        component: () => import('@/views/shortVideo/matrixManage/Image.vue'),
                        name: 'Image',
                        meta: { title: '图片' },
                        children: []
                    },
                    {
                        path: 'video',
                        component: () => import('@/views/shortVideo/matrixManage/Video.vue'),
                        name: 'Videos',
                        meta: { title: '视频' },
                        children: []
                    },
                    {
                        path: 'video-publish',
                        component: () => import('@/views/shortVideo/matrixManage/VideoPublish.vue'),
                        name: 'VideoPublish',
                        meta: { title: '视频矩阵发布' },
                        children: []
                    },
                    {
                        path: 'video-list',
                        component: () => import('@/views/shortVideo/matrixManage/VideoList.vue'),
                        name: 'VideoList',
                        meta: { title: '视频矩阵管理' },
                        children: []
                    },
                    {
                        path: 'graphics-publish',
                        component: () => import('@/views/shortVideo/matrixManage/GraphicsPublish.vue'),
                        name: 'GraphicsPublish',
                        meta: { title: '图文矩阵发布' },
                        children: []
                    },
                    {
                        path: 'graphics-list',
                        component: () => import('@/views/shortVideo/matrixManage/GraphicsList.vue'),
                        name: 'GraphicsList',
                        meta: { title: '图文矩阵管理' },
                        children: []
                    },
                ]
            },
            {
                path: 'content-creativity',
                name: 'ContentCreativity',
                meta: { title: '内容创意' },
                children: [
                    {
                        path: 'video-production',
                        component: () => import('@/views/shortVideo/contentCreativity/VideoProduction.vue'),
                        name: 'VideoProduction',
                        meta: { title: '视频制作' },
                        children: []
                    },
                    {
                        path: 'shooting-guide',
                        component: () => import('@/views/shortVideo/contentCreativity/ShootingGuide.vue'),
                        name: 'ShootingGuide',
                        meta: { title: '拍摄指引' },
                        children: []
                    }
                ]
            },
            {
                path: "/ai-person",
                component: Layout,
                meta: { title: "AI数字人" },
                children: [ {
                    component: () => import("@/views/shortVideo/aiPerson/index.vue"),
                    path: "http://xwbznyx.mtnets.com/AiAvatar/Editor/",
                    meta: { title: "AI数字人" },
                    },
                ],
            },
            {
                path: 'data-overview',
                name: 'DataOverview',
                meta: { title: '数据总览' },
                children: [
                    {
                        path: 'index',
                        component: () => import('@/views/shortVideo/dataOverview/index.vue'),
                        name: 'DataIndex',
                        meta: { title: '数据大屏' },
                        children: []
                    },
                    {
                        path: 'list',
                        component: () => import('@/views/shortVideo/dataOverview/List.vue'),
                        name: 'DataList',
                        meta: { title: '排名列表' },
                        children: []
                    }
                ]
            },
            {
                path: 'business-manage',
                name: 'BusinessManage',
                meta: { title: '商机管理' },
                component: () => import('@/views/shortVideo/businessManage/index.vue'),
                children: []
            },
            {
                path: 'operation-manage',
                name: 'OperationManage',
                meta: { title: '运营管理' },
                children: [
                    {
                        path: 'fine-operation',
                        component: () => import('@/views/shortVideo/operationManage/FineOperation.vue'),
                        name: 'FineOperation',
                        meta: { title: '精细运营' },
                        children: []
                    },
                    {
                        path: 'enterprise-num',
                        component: () => import('@/views/shortVideo/operationManage/EnterpriseNum.vue'),
                        name: 'EnterpriseNum',
                        meta: { title: '企业号权益' },
                        children: []
                    }
                ]
            },
        ]
    }
]

export default shortVideoRoutes;